import "./Calendar.css";

const Calender = (props) => {
  // console.log(props);
  // 获取月份
  const month = props.date.toLocaleString("zh-CN", { month: "long" });
  // 获取日期
  const day = props.date.toLocaleString("zh-CN", { day: "2-digit" });
  return (
    <div className="item-day">
      <div className="month">{month}</div>
      <div className="day">{day}</div>
    </div>
  );
};

export default Calender;
